            <div class="post" id="roster">
 
             {% if mechs %}
   
                <div style="height:32px; width: 32px; position: absolute;  z-index: 99; {% if mech.starter %}background-image: url(/images/star-icon32.png);{% endif %} background-repeat: none">&nbsp;</div>
				<div class="postheader" style="position: relative; top: 12px"><a name="roster"></a><h1>Roster</h1></div>
				<div class="postcontent">
                    <div style="padding-left: 5px;margin-top:23px;" >
                        {% regroup mechs|dictsort:"lance" by lance as mech_list %}
                        {% for lance in mech_list %}
                            <h2>{{ lance.grouper }}</h2>
                            <ul class="player" style="padding: 6px;">
                            {% for m in lance.list|dictsort:"player" %}
                            
                                <li class="player" >
                                    <div>
                                    <div style="font-weight: bold; margin-top: 6px; font-size: 12pt; {% if m.starter %}color: white;{% endif %}">
                                    {{ m.player|escape }}
                                    </div>
                                    
                                    <br />
                                    <ul class="naked" >
                                        <li style="color: #525757; font-weight: bold;" id="uimechnameof{{ m.player|escapejs }}">{% if m.mechtype %}{{ m.mechtype }}{% else %}'Mech not selected{% endif %}</li>
                                        <li style="color: #525757;font-weight: bold;" id="uispeedof{{ m.player|escapejs }}">{% if m.speed %}{{ m.speed }} km/h{% else %}Speed not selected{% endif %}</li>
                                        <li style="color: #525757;font-weight: bold; margin-top: 10px; margin-bottom: 10px;" id="uiweaponsof{{ m.player|escapejs }}">
                                        {% if m.weapons|length %}
                                        {{ m.weapons_as_string }}
                                        {% else %}
                                        Weapons not selected
                                        {% endif %}
                                        <br/><br/>       <br/><br/>
                                        </li>
                                        <li style="font-style: italic;" id="uiequipmentof{{ m.player|escapejs }}">
                                        {% if m.bap %}+BAP {% else %}{% endif %}
                                        {% if m.ecm %}+ECM {% else %}{% endif %}
                                        {% if m.uav %}+UAV {% else %}{% endif %}
                                        {% if m.ams %}+AMS {% else %}{% endif %}
                                        {% if m.artemis %}+Artemis {% else %}{% endif %}
                                        {% if m.bombs %}+Airstrike {% else %}{% endif %}
                                        {% if m.artillery %}+Artillery {% else %}{% endif %}
                                        {% if m.other %}+Other {% else %}{% endif %}
                                        {% if m.bap = 0 and m.ecm = 0 and m.uav = 0 and m.artemis = 0 and m.ams = 0 and m.bombs = 0 and m.artillery = 0 and m.other = 0 %}Equipment not selected{% endif %}
                                        <br/>x<br/> x      <br/>x<br/>
                                        </li>
                                    </ul>
                                    </div>
                                </li>
                            {% endfor %}
                            </ul>
                            
                        {% endfor %}
               
                    </div>
				</div>
                {% endif %}

		</div>